package com.guochenglang.www.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author GuoChenglang
 */
public interface CookieService {
    /**
     * 添加cookie
     *
     * @param resp  request
     * @param name  键名
     * @param value 值
     */
    void addCookie(HttpServletResponse resp, String name, String value);

    /**
     * 删除具体的cookie
     *
     * @param req  request
     * @param resp response
     * @param name 键名
     */
    void deleteCookie(HttpServletRequest req, HttpServletResponse resp, String name);
}
